package com.qfedu.test;

import com.qfedu.dao.AskforleaveDao;
import com.qfedu.entity.Askforleave;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class test00 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        AskforleaveDao bean = applicationContext.getBean(AskforleaveDao.class);
        List<Askforleave> allAskforleave = bean.findAllAskforleave();
        System.out.println(allAskforleave);

    }
}
